{% extends "adminbase.html" %}


{% block content %}
<h1>Manage Activation Codes</h1>

{% if success_message %}
	<font class="success">{{ success_message }}</font><br/><br/>
{% endif %}

{% if failure_message %}
	<font class="failure">{{ failure_message }}</font><br/><br/>
{% endif %}


<b>Used Codes:</b><br/><br/>
{% for code in usedCodes %}
<li>{{ code }}</li>
{% empty %}
There no used activation codes.
{% endfor %}
<br/><br/>
<b>Unused Codes:</b><br/><br/>
{% for code in unusedCodes %}
<li>{{ code }}</li>
{% empty %}
There no unused activation codes.
{% endfor %}

<h1>Add activation codes</h1>
<form method="post" action="/admins/manageActivationCodes/">{% csrf_token %}
	Code:<br/>
	<input type="text" name="code"/><br/><br/>
	<input id="search_btn" type="submit" name="submit" value="Add" /> <br/><br/>
</form>
{% endblock %}
